package com.lzx.dao.repository;

import com.lzx.dto.UserDto;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @Author: lzx
 * @Date: 2021/4/9 16:21
 */
public interface UserRepository extends ElasticsearchRepository<UserDto,Integer> {
    /**
     * 通过真名或用户名查询
     * @param search
     * @return
     */
    List<UserDto> queryByUsername(String search);
}
